package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicPutgoods;
import cn.stylefeng.guns.modular.basic.model.params.BasicPutgoodsParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicPutgoodsResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 收货单位表 Mapper 接口
 */
public interface BasicPutgoodsMapper extends BaseMapper<BasicPutgoods> {

    /**
     * 获取列表
     */
    List<BasicPutgoodsResult> customList(@Param("paramCondition") BasicPutgoodsParam paramCondition);

    /**
     * 获取map列表
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicPutgoodsParam paramCondition);

    /**
     * 获取分页实体列表
     */
    Page<BasicPutgoodsResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicPutgoodsParam paramCondition, @Param("condition") String condition
    		, @Param("deptId") Long deptId, @Param("operateId") Long operateId);

    Page<BasicPutgoodsResult> findPageBySpecHx(@Param("page") Page page, @Param("paramCondition") BasicPutgoodsParam paramCondition, @Param("condition") String condition
    		,@Param("deptId")Long deptId, @Param("operateId")Long operateId);
    
    Page<BasicPutgoodsResult> findPageNewBySpec(@Param("page") Page page, @Param("paramCondition") BasicPutgoodsParam paramCondition, @Param("condition") String condition
    		, @Param("deptId") Long deptId, @Param("operateId") Long operateId);

    /**
     * 获取分页map列表
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicPutgoodsParam paramCondition);

	BasicPutgoodsResult findBySpec(@Param("paramCondition")BasicPutgoodsParam param, @Param("operateId")Long operateId);

	BasicPutgoodsResult findCareful(@Param("paramCondition")BasicPutgoodsParam param);

    List<BasicPutgoodsResult> findListBySpec1(@Param("paramCondition") BasicPutgoods paramCondition,@Param("operateId") Long operateId);

	List<BasicPutgoodsResult> findListBySpec(@Param("paramCondition")BasicPutgoodsParam param, @Param("operateId")Long operateId);

	List<BasicPutgoodsResult> findListBySpecLimit5(@Param("paramCondition")BasicPutgoodsParam param, @Param("operateId")Long operateId);

	List<BasicPutgoodsResult> findListBySpecjinweidu(@Param("paramCondition")BasicPutgoodsParam param);

    List<BasicPutgoodsResult> noBindList(@Param("paramCondition") BasicPutgoods paramCondition, @Param("operateId")Long operateId);

    List<BasicPutgoodsResult> bindList(@Param("paramCondition") BasicPutgoods paramCondition, @Param("operateId")Long operateId);

	List<BasicPutgoodsResult> exportToExcel(@Param("paramCondition") BasicPutgoodsParam paramCondition, @Param("condition") String condition
    		, @Param("deptId") Long deptId, @Param("operateId") Long operateId);

    BasicPutgoodsResult findByName(@Param("name") String name, @Param("putgoodsCustomerId")Long putgoodsCustomerId);

    Page<BasicPutgoodsResult> getStoreByWarehouseId(@Param("page") Page page, @Param("warehouseId") String warehouseId);

    void unBindStoreByWarehouseId(@Param("storeId") String storeId,@Param("warehouseId") String warehouseId);
}
